package net.dengzixu.java.homework.period21;

public class Goods {
    // 单价
    private double unitPrice;

    // 数量
    private long account;

    /**
     * Goods 商品
     *
     * @param unitPrice 单价
     * @param account   数量
     */
    public Goods(double unitPrice, long account) {
        this.unitPrice = unitPrice;
        this.account = account;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public long getAccount() {
        return account;
    }

    public void setAccount(long account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "unitPrice=" + unitPrice +
                ", account=" + account +
                '}';
    }
}
